package com.example.hzly.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.hzly.entity.CustomOption;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CustomOptionMapper extends BaseMapper<CustomOption> {
    
    @Select("SELECT * FROM custom_option WHERE type = #{type} ORDER BY sort_order ASC")
    List<CustomOption> selectByType(String type);
}